home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3tool.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_TOOL_H = 1;
- include("oops/r3button.js")
-
-
- var R3CLID_TOOL = 187;
-
-
-
-
- // Description: Executed when a tool is selected. This method is defined by the base class
- // but it is up to the sub classes to implement this. Tool must call R3WGM_MAPCHANGES
- // of its tool button with this method. When the tool is clicked by the user,
- // this method is called. The tool must then send the NEWINTERACTOR method to the layer
- // class.
- // Virtual method
- // Returns: Boolean, must be true.
-
- R3TOOLM_ACTION = 187001;
-
- function mR3TOOLM_ACTION() {
- return DoA(this.r3obj, 187001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Class message. Install new tool for the toolbar.
- // Returns: Boolean, true if succeeded
- // p1: Integer, class id of the tool group
- // p3: Integer, class id of the tool
-
- R3TOOLCM_INSTALLTOOLCLASS = 187002;
-
- function mR3TOOLCM_INSTALLTOOLCLASS(p1, p3) {
- return DoA2(this.r3obj, 187002, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerates all installed tools. The given 'targetobject' is called with two parameters: p1 =
- // (R3CLID)group, p3 = (R3CLID)tool.
- // p3: Tag[], R3RA_TargetObject, R3RA_TargetMethod
-
- R3TOOLCM_ENUMTOOLCLASSES = 187003;
-
- function mR3TOOLCM_ENUMTOOLCLASSES(p3) {
- Do(this.r3obj, 187003, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Class method. Install new tool group.
- // Returns: Boolean, true if succeeded.
- // p1: Integer, class id of the group
- // p3: String, symbolic name for the group.
-
- R3TOOLCM_INSTALLTOOLGROUP = 187005;
-
- function mR3TOOLCM_INSTALLTOOLGROUP(p1, p3) {
- return DoA2(this.r3obj, 187005, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
- }
-
- // Description: Show info message
- // p3: String, message to be shown
-
- R3TOOLM_SHOWMESSAGE = 187007;
-
- function mR3TOOLM_SHOWMESSAGE(p3) {
- DoA(this.r3obj, 187007, p3, R3TID_STRING, 0);
- }
-
- // Description: Sets the orientation of the second line
- // Virtual method
-
- R3TOOLM_SETCONTROLORIENTATIO = 187008;
-
- function mR3TOOLM_SETCONTROLORIENTATIO() {
- DoA(this.r3obj, 187008, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Sets the orientation of the status line
- // Virtual method
-
- R3TOOLM_SETSTATUSORIENTATION = 187009;
-
- function mR3TOOLM_SETSTATUSORIENTATION() {
- DoA(this.r3obj, 187009, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Reads the default options from the interactor. Defaults are used when the interactor is
- // activated.
- // Virtual method
-
- R3TOOLM_MAKEDEFAULTS = 187010;
-
- function mR3TOOLM_MAKEDEFAULTS() {
- DoA(this.r3obj, 187010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerates groups and tools
- // p1: Integer, group id
- // p2: String, group name
- // p3: Integer, tool id
-
- R3TOOLCM_ENUMGROUPSANDTOOLS = 187011;
-
- function mR3TOOLCM_ENUMGROUPSANDTOOLS(p1, p2, p3) {
- DoA3(this.r3obj, 187011, p1, R3TID_INTEGER, 0, p2, R3TID_STRING, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Write default tool options to a file.
- // Returns: Boolean, true if succeeded
-
- R3TOOLM_WRITEDEFAULTS = 187012;
-
- function mR3TOOLM_WRITEDEFAULTS() {
- return DoA(this.r3obj, 187012, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Read default tool options from a file.
- // Returns: Boolean, true if succeeded
-
- R3TOOLM_READDEFAULTS = 187013;
-
- function mR3TOOLM_READDEFAULTS() {
- return DoA(this.r3obj, 187013, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set current defaults options to the tool's interactor. This method is defined by the
- // r3tool base class but it is up to the sub class to implement this.
- // Virtual method
- // Returns: Boolean, true if succeeded
-
- R3TOOLM_SETDEFAULTS = 187014;
-
- function mR3TOOLM_SETDEFAULTS() {
- return DoA(this.r3obj, 187014, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Read all interactor's options. These are used as default options next time the tool
- // is activated. This method is defined by the r3tool base class but implemented by the
- // sub classes.
- // Virtual method
- // Returns: Boolean, true if succeeded
-
- R3TOOLM_GETDEFAULTS = 187015;
-
- function mR3TOOLM_GETDEFAULTS() {
- return DoA(this.r3obj, 187015, 0, R3TID_INTEGER, 0);
- }
-
- // Description: returns description text for the tool. This string can be used in menus and
- // other GUI elements allowing more descriptive texts.
- // Returns: String, address of the tool description
-
- R3TOOLCM_GETLONGDESCRIPTION = 187016;
-
- function mR3TOOLCM_GETLONGDESCRIPTION() {
- return DoA(this.r3obj, 187016, 0, R3TID_INTEGER, 0);
- }
-
- // Description: returns description text for the tool. This string can be used in menus and
- // other GUI elements allowing more descriptive texts.
- // Returns: String, address of the tool description
-
- R3TOOLCM_GETDESCRIPTION = 187017;
-
- function mR3TOOLCM_GETDESCRIPTION() {
- return DoA(this.r3obj, 187017, 0, R3TID_INTEGER, 0);
- }
-
- // Description: creates interactor for the tool class
- // p3: Object, current layer
-
- R3TOOLCM_CREATEINTERACTOR = 187020;
-
- function mR3TOOLCM_CREATEINTERACTOR(p3) {
- DoA(this.r3obj, 187020, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Check if the new tool should replace the current tool.
- // Returns: Boolean, TRUE if the new tool should replace the current tool. FALSE if the new
- // tool should be pushed on top of the tool stack.
-
- R3TOOLM_GETREPLACEOPT = 187022;
-
- function mR3TOOLM_GETREPLACEOPT() {
- return DoA(this.r3obj, 187022, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- R3TOOLA_Layer = 187500;
- function SetR3TOOLA_Layer(value) {
- R3Set(this.r3obj, R3TOOLA_Layer, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TOOLA_Layer() {
- return R3ToJS(R3Get(this.r3obj, R3TOOLA_Layer, R3TID_OBJECT, 0));
- }
-
- R3TOOLA_UnitConverter = 187501;
- function SetR3TOOLA_UnitConverter(value) {
- R3Set(this.r3obj, R3TOOLA_UnitConverter, value, R3TID_OBJECT, 0);
- }
-
- function GetR3TOOLA_UnitConverter() {
- return R3ToJS(R3Get(this.r3obj, R3TOOLA_UnitConverter, R3TID_OBJECT, 0));
- }
-
- R3TOOLA_Interactor = 187502;
- function GetR3TOOLA_Interactor() {
- return R3ToJS(R3Get(this.r3obj, R3TOOLA_Interactor, R3TID_OBJECT, 0));
- }
-
- R3TOOLA_Active = 187505;
- function SetR3TOOLA_Active(value) {
- R3Set(this.r3obj, R3TOOLA_Active, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TOOLA_Active() {
- return R3Get(this.r3obj, R3TOOLA_Active, R3TID_INTEGER, 0);
- }
-
- var R3TOOLA_CtrlWindow_removed = 187506; // Object
- var R3TOOLA_StatusWindow_removed = 187507; // Object
- R3TOOLA_Identifier = 187508;
- function SetR3TOOLA_Identifier(value) {
- R3Set(this.r3obj, R3TOOLA_Identifier, value, R3TID_INTEGER, 0);
- }
-
- function GetR3TOOLA_Identifier() {
- return R3Get(this.r3obj, R3TOOLA_Identifier, R3TID_INTEGER, 0);
- }
-
- var R3TOOL_MAXTOOLCOUNT = 2000;
- var R3TOOL_MAXGROUPCOUNT = 200;
- var R3TOOLORIENTATION_VERTICAL = 0;
- var R3TOOLORIENTATION_HORIZONTAL = 1;
- var R3TOOLS_CANNOTGETDEFAULTS = 0;
- var R3TOOLS_CANNOTSETDEFAULTS = 1;
- var R3TOOLS_PRIVATE = 10;
-
-
- function r3Tool () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_TOOL, arguments);
- }
- // Methods
- this.ACTION=mR3TOOLM_ACTION;
- this.INSTALLTOOLCLASS=mR3TOOLCM_INSTALLTOOLCLASS;
- this.ENUMTOOLCLASSES=mR3TOOLCM_ENUMTOOLCLASSES;
- this.INSTALLTOOLGROUP=mR3TOOLCM_INSTALLTOOLGROUP;
- this.SHOWMESSAGE=mR3TOOLM_SHOWMESSAGE;
- this.SETCONTROLORIENTATIO=mR3TOOLM_SETCONTROLORIENTATIO;
- this.SETSTATUSORIENTATION=mR3TOOLM_SETSTATUSORIENTATION;
- this.MAKEDEFAULTS=mR3TOOLM_MAKEDEFAULTS;
- this.ENUMGROUPSANDTOOLS=mR3TOOLCM_ENUMGROUPSANDTOOLS;
- this.WRITEDEFAULTS=mR3TOOLM_WRITEDEFAULTS;
- this.READDEFAULTS=mR3TOOLM_READDEFAULTS;
- this.SETDEFAULTS=mR3TOOLM_SETDEFAULTS;
- this.GETDEFAULTS=mR3TOOLM_GETDEFAULTS;
- this.GETLONGDESCRIPTION=mR3TOOLCM_GETLONGDESCRIPTION;
- this.GETDESCRIPTION=mR3TOOLCM_GETDESCRIPTION;
- this.CREATEINTERACTOR=mR3TOOLCM_CREATEINTERACTOR;
- this.GETREPLACEOPT=mR3TOOLM_GETREPLACEOPT;
-
- // Attributes
- this.GetLayer=GetR3TOOLA_Layer;
- this.SetLayer=SetR3TOOLA_Layer;
- this.GetUnitConverter=GetR3TOOLA_UnitConverter;
- this.SetUnitConverter=SetR3TOOLA_UnitConverter;
- this.GetInteractor=GetR3TOOLA_Interactor;
- this.GetActive=GetR3TOOLA_Active;
- this.SetActive=SetR3TOOLA_Active;
- this.GetIdentifier=GetR3TOOLA_Identifier;
- this.SetIdentifier=SetR3TOOLA_Identifier;
- }
-
- r3Tool.prototype=new r3Button;
- // r3tool.h_H